package com.annhoa.infrastructure.util.aes;


public class Base64Utils {
    public static final String ENCODING = "UTF-8";

    public Base64Utils() {
    }

    public static byte[] decode(String base64) throws Exception {
        return Base64.decode(base64.getBytes("UTF-8"));
    }

    public static String encode(byte[] bytes) throws Exception {
        return new String(Base64.encode(bytes), "UTF-8");
    }
}
